// pages/home/home.js

Page({

  /**
   * 页面的初始数据
   */
  data: {

  },

  getCard: function(event) {
    wx.navigateTo({
      url: 'getCard/getCard',
    })
  },

  loseCard: function(event) {
    wx.navigateTo({
      url: 'loseCard/loseCard',
    })
  },

  getCardRecord: function(event) {
    wx.navigateTo({
      url: 'getCardRecord/getCardRecord',
    })
  },

  loseCardRecord: function(event) {
    wx.navigateTo({
      url: 'loseCardRecord/loseCardRecord',
    })
  },

  verifyStudent: function (e) {
    console.log(e)
    var detail = e.detail;
    var code = detail.code;
    var message = detail.message;

    if (code == 0) {
      var student = detail.student;

      var cardNumber = student.card_number; // 电子卡号
      var name = student.name; // 姓名
      var weixiaoStuId = student.weixiao_stu_id; // 腾讯微卡用户id
      var identityType = student.identity_type; // 身份类型，1为其他，2为学生，3为教职工，4为校友

    }
  }
  


})